const obj = {name: 'tom'}

const name = 'rose'

const {name: myName} = obj

console.log(name);
console.log(myName);